package dslab.enums;

public enum Outcome {
    SUCCESS,
    UNKNOWN_HOST("the host could not be reached"),
    PROTOCOL_ERROR("the server has responded unexpectedly"),
    SOCKET_TIMEOUT("the socket connection has timed out"),
    IO_ERROR("there was an I/O error");

    private String message;

    Outcome() {}
    Outcome(String message) {
        this.message = message;
    }

    public String getMessage() {
        return message;
    }
}
